package com.heima.apis.admin;

import com.heima.model.admin.dtos.SensitiveDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author Jt
 * @date 2021/4/10 22:18
 */
@Api(value = "敏感词管理的API文档" , tags = "敏感词管理的API文档" , description = "关于敏感词管理的API文档")
public interface SensitiveControllerApi {

    /**
     * 查询敏感词列表
     * @param sensitiveDto
     * @return
     */
    @ApiOperation("查询敏感词列表")
    public ResponseResult list (SensitiveDto sensitiveDto);

    /**
     * 新增敏感词
     * @param adSensitive
     * @return
     */
    @ApiOperation("新增敏感词")
    public ResponseResult insert (AdSensitive adSensitive);

    /**
     * 修改敏感词
     * @param adSensitive
     * @return
     */
    @ApiOperation("修改敏感词")
    public ResponseResult update (AdSensitive adSensitive);

    /**
     * 根据ID删除敏感词
     * @param id
     * @return
     */
    @ApiOperation("根据ID删除敏感词")
    public ResponseResult delete (Integer id);

}
